package org.tp.framework.util;

/**
 * 
 * String 工具类
 *
 */
public class StringUtils {

    public static boolean isEmpty(String data) {
        if (data == null) {
            return true;
        }
        if (data.length() == 0) {
            return true;
        }
        if (data.toCharArray().length == 0) {
            return true;
        }
        return false;

    }

    public static String toString(Object object) {
        if (object == null) {
            return null;
        }
        return String.valueOf(object.toString());
    }

}
